package com.onlinesshop.mall.pojo;

import java.io.Serializable;

/**
 * 订单信息
 */
public class Order implements Serializable {
    private int id;
    private int user_id;  //用户表id
    private int shopping_id;  //地址表id
    private String order_num; //订单号
    private String payment;   //支付金额
    private int payment_type; //支付方式 0--在线支付
    private double postage;     //运费

    //0-已取消 1-已付款2-未付款 3-已发货 4-交易成功 5-交易关闭
    private int status;

    private String payment_time;      //支付时间
    private String send_time;         //发货时间
    private String create_time;       //订单创建时间
    private String update_time;       //订单更新时间
    private User user;             //用户
    private Shopping shopping;          //地址

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Shopping getShopping() {
        return shopping;
    }

    public void setShopping(Shopping shopping) {
        this.shopping = shopping;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getShopping_id() {
        return shopping_id;
    }

    public void setShopping_id(int shopping_id) {
        this.shopping_id = shopping_id;
    }

    public String getOrder_num() {
        return order_num;
    }

    public void setOrder_num(String order_num) {
        this.order_num = order_num;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public int getPayment_type() {
        return payment_type;
    }

    public void setPayment_type(int payment_type) {
        this.payment_type = payment_type;
    }

    public double getPostage() {
        return postage;
    }

    public void setPostage(double postage) {
        this.postage = postage;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getPayment_time() {
        return payment_time;
    }

    public void setPayment_time(String payment_time) {
        this.payment_time = payment_time;
    }

    public String getSend_time() {
        return send_time;
    }

    public void setSend_time(String send_time) {
        this.send_time = send_time;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", shopping_id=" + shopping_id +
                ", order_num='" + order_num + '\'' +
                ", payment='" + payment + '\'' +
                ", payment_type=" + payment_type +
                ", postage=" + postage +
                ", status=" + status +
                ", payment_time='" + payment_time + '\'' +
                ", send_time='" + send_time + '\'' +
                ", create_time='" + create_time + '\'' +
                ", update_time='" + update_time + '\'' +
                ", user=" + user +
                ", shopping=" + shopping +
                '}';
    }
}
